package
{
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;

	public class ActionBarButton
	{
		private var m_display:Sprite = new Sprite();
		private var m_textField:TextField = new TextField();
		public function ActionBarButton(buttonText:String)
		{
			m_textField.defaultTextFormat = new TextFormat(null,8,0xffffff);
			m_textField.mouseEnabled = false;
			m_textField.text = buttonText;
			m_textField.autoSize = TextFieldAutoSize.LEFT;
			Global.getRectSprite(m_textField.width, m_textField.height, 0x000000, .8, 0, 0, m_display);
			m_display.addChild(m_textField);
		}
		
		public function getDisplay():Sprite{
			return m_display;
		}
	}
}